﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs.Notice
{
    /// <summary>
    /// 岗位公告表(规定公告范围，哪些岗位可以看)=》角色公告权限表
    /// </summary>
    [Table("JobsNotices")]
    public class JobsNotices : BaseEntity
    {
        /// <summary>
        /// 岗位公告编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int UserNoticesId { get; set; }

        #region 导航属性 
        /// <summary>
        /// 岗位编号
        /// </summary>
        public int JobsId { get; set; }
        public virtual Jobs Departments { get; set; }
        /// <summary>
        /// 公告编号
        /// </summary>
        public int NoticesId { get; set; }
        public virtual Notices Notices { get; set; }
        #endregion

    }



}
